package com.starinside.wp.foundation.dto;

import lombok.Data;

import java.util.List;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/6/25
 * *******************************
 */
@Data
public class StaffDTO {
    private String id;
    private String realName;
    private String mobile;
    private Integer gender;
    private String headImgUrl;
    private Long lastLogin;
    private String dingDingUserId;
    private String areaId;
    private String roleCode;
    private String roleName;

    public static StaffDTO matchOf(String id, List<StaffDTO> staffDTOList){
        return staffDTOList.stream().filter(o->o.getId().equals(id)).findAny().get();
    }
}
